/*
 * @Author       : Hejh(3010733382@qq.com)
 * @Version      : V1.0
 * @Date         : 2024-01-31 11:40:33
 * @Description  : 全局loading 的hook
 */

export const userLoading = () => {
  const loading = ref(false)

  const openLoading = () => {
    loading.value = true
  }

  const closeLoading = () => {
    loading.value = false
  }

  return {
    loading,
    openLoading,
    closeLoading
  }
}
